home *** CD-ROM | disk | FTP | other *** search
/ Reverse Code Engineering RCE CD +sandman 2000 / ReverseCodeEngineeringRceCdsandman2000.iso / RCE / Library / Manuels & Misc / Assembly / AOA.ZIP / CH03 / EX4.X86 < prev    next >
Encoding:
Text File  |  1996-02-01  |  237 b   |  28 lines

  1. d:    mov    cx, 0
  2.     mov    [1000], cx
  3.  
  4. a:    mov    cx, [1000]
  5.     cmp    cx, 0
  6.     jne    c
  7.  
  8.     mov    ax, [fff0]
  9.     cmp    ax, 0
  10.     je    a
  11.     halt
  12.  
  13.  
  14. c:    mov    bx, 1002
  15.     mov    ax, 0
  16. b:    add    ax, [bx]
  17.     add    bx, 2
  18.     sub    cx, 1
  19.     cmp    cx, 0
  20.     jne    b
  21.  
  22.     put
  23.     jmp    d
  24.     
  25.     
  26.  
  27.  
  28.